package logic.bean;

import com.amap.api.maps2d.model.LatLng;

import java.io.Serializable;
import java.util.ArrayList;

public class LocationBean
        implements
        Serializable
{
    private static final long serialVersionUID = 2865083448443786059L;
	public String name;
	public String address;
	public String phone;
	public LatLng latLng;
	/** 距离,单位：米 */
	public Float  distance;

	public LocationBean(){}

	public LocationBean(String name, String address, String phone, LatLng latLng) {
	    super();
	    this.name = name;
	    this.address = address;
	    this.phone = phone;
	    this.latLng = latLng;
    }

	public static ArrayList<LocationBean> getLocationList(){
		final ArrayList<LocationBean> data = new ArrayList<LocationBean>();
		data.add(new LocationBean("省国际部", "江干区钱江路58号赞成太和广场2号楼7-8层", "0571-81795518", new LatLng(30.222284, 120.183128)));
		data.add(new LocationBean("第二营业部", "下城区体育场路27号17-18楼", "0571-85284238", new LatLng(30.275906, 120.192623)));
		data.add(new LocationBean("第三营业部", "上城区中山中路151号5-6楼", "0571-86695518", new LatLng(30.248602, 120.177189)));
		data.add(new LocationBean("第四营业部", "下城区体育场路27号15-16楼 ", "0571-85867700", new LatLng(30.276006, 120.192723)));
		data.add(new LocationBean("第五营业部", "下城区体育场路27号8-9楼 ", "0571-85867769", new LatLng(30.276006, 120.192523)));
		data.add(new LocationBean("中山支公司", "上城区中山中路151号", "0571-87272759", new LatLng(30.248702, 120.177289)));
		data.add(new LocationBean("江城支公司", "江干区环城东路10-1号", "0571-87839717", new LatLng(30.251339, 120.189748)));
		data.add(new LocationBean("湖墅支公司", "拱墅区湖墅南路400号", "0571-86895518", new LatLng(30.295671, 120.156216)));
		data.add(new LocationBean("武林支公司", "下城区体育场路279号粮贸大厦8楼", "0571-88995518", new LatLng(30.275673, 120.172543)));
		data.add(new LocationBean("西湖支公司", "西湖区保俶路121号", "0571-85117085", new LatLng(30.272303, 120.153916)));
		data.add(new LocationBean("滨江支公司", "滨江启智街(近西兴路和新洲花园)", "0571-81395518", new LatLng(30.204163, 120.235575)));
		data.add(new LocationBean("经济开发区支公司", "下沙街道天城东路246-117-118号(渤海银行旁边)", "0571-85895518", new LatLng(30.311426, 120.342868)));
		data.add(new LocationBean("萧山支公司", "萧山区城厢街道人民路280号", "0571-82695518", new LatLng(30.165615, 120.284369)));
		data.add(new LocationBean("余杭支公司", "余杭区临平东湖中路169号", "0571-89161187", new LatLng(30.431317, 120.311643)));
//		data.add(new LocationBean("临安支公司", "临安市锦城街道钱王大街648号", "0571-63722373", new LatLng(30.232933, 119.724485)));
//		data.add(new LocationBean("富阳支公司", "富阳市富春街道桂花路19号", "0571-63295518", new LatLng(30.054607, 119.967481)));
//		data.add(new LocationBean("桐庐支公司", "桐庐县桐君街道迎宾路30号", "0571-64395518", new LatLng(29.805776, 119.679833)));
//		data.add(new LocationBean("建德支公司", "建德市新安江街道新安东路22号", "0571-64795518", new LatLng(29.482395, 119.290634)));
//		data.add(new LocationBean("淳安支公司", "淳安县千岛湖镇排岭北路55号", "0571-64995518", new LatLng(29.611196, 119.053556)));
		return data;
	}

	@Override
    public String toString() {
	    return "name=" + name + ", distance=" + distance + "\n";
    }

}
